package lab01;


public class Test05 {
    public static void main(String[] args) {
        int n=Integer.parseInt(args[0]);
int i;
int sum;
        i=1;
        sum=0;
        do{
            sum+=i;
            i++;
        }while(i<=n);
        System.out.println(sum);
    }

    }


